//
//  AlertViewController.h
//  FineNurse
//
//  Created by TT_UED on 2018/4/20.
//  Copyright © 2018年 TT_UED. All rights reserved.
//

#import <UIKit/UIKit.h>


@interface AlertViewController : UIAlertController

/*
 示例
 UIAlertController *alert = [AlertViewController Alert:@"弹出消息" callbackOkFn:^(){
 
    NSLog(@"1111111111");
 
 }];
 [self presentViewController:alert animated:YES completion:nil];
 
 
 NSArray* arr = @[@"1",@"2",@"3",@"4"];
 UIAlertController *sheetsAlert = [AlertViewController AlertSheet:@"提示" message:@"abc" sheetsName:arr callbackFns:^(int index){
 NSLog(@"%@", arr[index]);
 }];
 [self presentViewController:sheetsAlert animated:YES completion:nil];
 */
 
+(UIAlertController*) Alert:(NSString*)message callbackOkFn: (nullable void(^)())callbackYes;
+(UIAlertController*) Confirm:(NSString*)message callbackOkFn: (nullable void(^)())callbackYes callbackNoFn: (nullable void(^)())callbackCancel;
+(UIAlertController*) AlertSheet:(NSString*)title message:(NSString*)message sheetsName:(NSArray*)sheets callbackFns:(void(^)())callback;

@end

